#就近原则
class Person:
    name = "父类名字"
    def __init__(self):
        self.name = '子类名字'

p = Person()
print(p.name)

#判断数据类型
print(isinstance(p, Person))

list1 = set([1,1,1,1,1,2,3])
print(isinstance(list1, list))